package org.dromara.quickswing.constant;
/**
 * @author Jin
 */
public enum QSOs {

	WINDOWS(false),

	MAC_OS_X(false),

	LINUX(true),

	SOLARIS(true),

	OTHER(true);

	private final boolean caseSensitive;

	private static QSOs QSOs;


	QSOs(boolean caseSensitive) {
		this.caseSensitive = caseSensitive;
	}
	public static QSOs get() {
		return QSOs;
	}

	public boolean isCaseSensitive() {
		return caseSensitive;
	}

	static {
		QSOs = OTHER;
		String osName = System.getProperty("os.name");
		if (osName!=null) {
			osName = osName.toLowerCase();
			if (osName.contains("windows")) {
                QSOs = WINDOWS;
            } else if (osName.contains("mac os x")) {
                QSOs = MAC_OS_X;
            } else if (osName.contains("linux")) {
                QSOs = LINUX;
            } else {
                QSOs = OTHER;
            }
		}
	}


}